﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Longtop {
    public class UserManager {
        //public virtual bool ValidateLogin(string userName, string password)
        //{
        //    User user = User.Get(userName);
        //    return user == null ? false : user.Password == password;
        //}

        //public virtual bool Exist(string userName)
        //{
        //    return User.Exists(userName);
        //}

        //public virtual void CreateUser(User user)
        //{
        //    user.Validate();

        //    if (User.Exists(user.Name))
        //    {
        //        throw new RuntimeException("User exsited");
        //    }

        //    user.Save();
        //}

        //public virtual List<User> GetUsers(int page, int pageSize, out int totalCount)
        //{
        //    return User.List(page, pageSize, out totalCount);
        //}

        //public virtual void Delete(string userName)
        //{
        //    User.Delete(userName);
        //}
    }
}
